package com.xihuanjun.service;

import com.xihuanjun.dao.MyDao;
import com.xihuanjun.entity.Location;

public class MyService {

    MyDao myDao=new MyDao();

    Location checkAll=new Location()


    /**
     * 点击多个复选框
     * @param startIndex 从第几个开始，1代表从第一个
     * @param count 连续点击多少个
     */
    public void clickCheckBoxs(int startIndex,int count){
        int step=36;//下一个复选框的高度差值
        Location firstCheck=new Location(63,307,"第一个复选框");
        int currentHeight=firstCheck.getY();
        for(int i=1;i<startIndex;i++){
            currentHeight+=step;
        }
        for(int i=0;i<count;i++){
            Location current=new Location(firstCheck.getX(),currentHeight,"");
            myDao.click(current);
        }
    }

    public void resetAllCheckBox(){

    }
}
